import request from '@/utils/request'

export function getOrderList(data) {
  return request({
    url: '/order/admin/list',
    method: 'post',
    data
  })
}

export function deleteOrder(params) {
  return request({
    url: '/order/admin/del',
    method: 'get',
    params
  })
}

export function createOrderDetail(data) {
  return request({
    url: '/order/admin/create',
    method: 'post',
    data
  })
}

export function updateOrderDetail(data) {
  return request({
    url: '/order/admin/update',
    method: 'post',
    data
  })
}

export function getOrderDetail(params) {
  return request({
    url: '/order/admin/getDetail',
    method: 'get',
    params
  })
}

